<template>
  <div class="emoji-components">
    <el-image :src="url"/>
  </div>
</template>

<script>
export default {
  name: 'Emoji',
  props: {
    name: {
      required: true
    }
  },
  computed: {
    url () {
      return require('@/assets/emoji/i_f' + this.name + '.png')
    }
  }
}
</script>

<style scoped lang="less">
.emoji-components {
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;

  .el-image {
    height: 25px;
    width: 25px;
  }
}
</style>
